import { AUTO, Game } from 'phaser';
import { Boot, MainScene } from './scenes';


const config: Phaser.Types.Core.GameConfig = {
    type: AUTO,
    width: 960,
    height: 575,
    parent: 'game-container',
    backgroundColor: 'fff',
    physics: {
        default: "arcade"
    },
    scene: [
        Boot, MainScene
    ]
};

const StartGame = (parent: string) => {
    return new Game({ ...config, parent });
}

export default StartGame;